package com.mrdeer.merchant.convert;

import com.mrdeer.merchant.api.dto.StaffDTO;
import com.mrdeer.merchant.api.entity.Staff;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/10 0010 10:38
 */
@Mapper
public interface StaffConvert {

    StaffConvert INSTANCE = Mappers.getMapper(StaffConvert.class);

    StaffDTO entity2Dto(Staff staff);

    Staff dto2Entity(StaffDTO staffDTO);

    List<StaffDTO> listEntity2Dto(List<Staff> staff);
}
